package cn.stu.projectsummit.blog.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class BlogVO {
    @ApiModelProperty(value = "帖子id")
    private Long id;
    @ApiModelProperty(value = "用户id")
    private Long userId;
    @ApiModelProperty(value = "帖子标题")
    private String title;
    @ApiModelProperty(value = "帖子内容")
    private String content;
    @ApiModelProperty(value = "帖子类型 0求助 1资源 2日常")
    private String type;
    @ApiModelProperty(value = "转发权限 0禁止 1允许 默认1")
    private String forwardLimit;
    @ApiModelProperty(value = "评论权限 0禁止 1允许 默认1")
    private String commentLimit;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    @ApiModelProperty(value = "用户姓名")
    private String username;
    @ApiModelProperty(value = "是否点过赞")
    private Boolean beLikes;
    @ApiModelProperty(value = "点赞数量")
    private Integer likesCount;
}
